选择有意义。但是有人可以向我解释.detect吗?我不明白这些数据。>>[1,2,3,4,5,6,7].detect{|x|x.between?(3,4)}=>3>>[1,2,3,4,5,6,7].detect{|x|x.between?(3,6)}=>3>>[1,2,3,4,5,6,7].detect{|x|x.between?(3,7)}=>3>>[1,2,3,4,5,6,7].detect{|x|x.between?(2,7)}=>2>>[1,2,3,4,5,6,7].detect{|x|x.between?(1,7)}=>1>>[1,2,3,4,5,6,7].detect{|x
我现在正试图弄清楚如何使用Dropzone.js和vanillajavascript(无jQuery)发送防伪token。这是我目前的初始化代码:$(document).ready(function(e){varmyDropzone=newDropzone("#myDropzone",{url:"/Media/AjaxUpload",maxFilesize:10,addRemoveLinks:true,maxFiles:1});myDropzone.on("success",function(response){//Dosomepersonalstuff.});myDropzone.o